package com.modouyu.demo212.demo212;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;

/**
 * @Auther: modouyu
 * @Date: 2018/7/10 08:34
 * @Description:
 *      可以通过ApplicationReadyEvent获取ConfigurableApplicationContext，
 *      然后通过ConfigurableApplicationContext 获取bean的信息
 * @Email: yangcb@daochunfin.com
 */
@Slf4j
public class ApplicationReadyEventListener implements ApplicationListener<ApplicationReadyEvent> {
    @Override
    public void onApplicationEvent(ApplicationReadyEvent applicationReadyEvent) {
      log.info("......ApplicationReadyEvent......");
    }
}
